package com.sneaker.shower.entity.dto;

import com.sneaker.shower.entity.enums.UserTypeEnum;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class UserTypeDTO {
    private Integer code;
    private String message;
    private BigDecimal discount;
    private BigDecimal price;

    public UserTypeDTO() {
    }

    public UserTypeDTO(Integer code, String message, BigDecimal discount, BigDecimal price) {
        this.code = code;
        this.message = message;
        this.discount = discount;
        this.price = price;
    }

    public UserTypeDTO(UserTypeEnum userTypeEnum) {
        this(userTypeEnum.getCode(), userTypeEnum.getMessage(), userTypeEnum.getDiscount(), userTypeEnum.getPrice());
    }
}
